<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSingleSpecTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('single_spec', function (Blueprint $table) {
            $table->increments('id');
            $table->string('image')->default('')->comment('图片');
            $table->float('price')->comment('价格');
            $table->string('cost_price')->default('')->comment('成本价格');
            $table->string('costs_price')->default('')->comment('原价');
            $table->string('stock')->default('')->comment('库存');
            $table->string('product')->default('')->comment('商品编号');
            $table->string('weight')->default('')->comment('重量');
            $table->string('bulk')->default('')->comment('体积');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('single_spec');
    }
}
